//
//  Target_CTMediatorTest.m
//  Study
//
//  Created by 振兴 刘 on 2019/8/14.
//  Copyright © 2019 振兴 刘. All rights reserved.
//

#import "Target_CTMediatorTest.h"
#import <UIKit/UIKit.h>
#import "TestViewController.h"

@implementation Target_CTMediatorTest

/*
这里要注意的是：在组件创建公开API的时候，类名需要以Target_开头，方法名需要以Action_开头，原因是因为源码里的方法是需要根据此开头内容判断Class和Method的，
*/

- (UIViewController *)Action_pushView:(NSDictionary *)params {
    
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    TestViewController *controller = [storyboard instantiateViewControllerWithIdentifier:@"TestVC"];
    controller.params = [params mutableCopy];
    controller.content = @"通过CTMediator跳转";
    return controller;
}

@end
